package com.gzhryc.net_marketing.api.protocol.goods;

import com.gzhryc.common.api.SecurityResponse;
import com.gzhryc.net_marketing.core.models.GoodsItem;

import java.io.Serializable;
import java.util.List;

public class GoodsListResponse extends SecurityResponse<GoodsListResponse.Body> {

    private static final long serialVersionUID = 1L;

    public GoodsListResponse() {
        this.body = new Body();
    }

    public GoodsListResponse(Integer code) {
        super(code);
        this.body = new Body();
    }

    public GoodsListResponse(Integer code, String msg) {
        super(code,msg);
        this.body = new Body();
    }

    public static class Body implements Serializable {

        private static final long serialVersionUID = 1L;

        private Long total;
        private List<GoodsItem> goodsList;

        public Long getTotal() {
            return total;
        }

        public void setTotal(Long total) {
            this.total = total;
        }

        public List<GoodsItem> getGoodsList() {
            return goodsList;
        }

        public void setGoodsList(List<GoodsItem> goodsList) {
            this.goodsList = goodsList;
        }
    }
}
